import Vue from 'vue'
import App from './App'
import {router,RouterMount} from '@/common/router.js'  //路径换成自己的
Vue.use(router)
// vuex
import store from './store'
import axios from 'axios'
Vue.prototype.$axios= axios

// 引入全局uView
import uView from '@/uni_modules/uview-ui'

// 引入富文本编辑器
import VueQuillEditor from 'vue-quill-editor'
// require styles 引入样式
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'

import mixin from './common/mixin'

Vue.prototype.$store = store

Vue.config.productionTip = false


App.mpType = 'app'
Vue.use(VueQuillEditor)
Vue.use(uView)

// #ifdef MP
// 引入uView对小程序分享的mixin封装
const mpShare = require('@/uni_modules/uview-ui/libs/mixin/mpShare.js')
Vue.mixin(mpShare)
// #endif

Vue.mixin(mixin)

const app = new Vue({
    store,
    ...App
})
// 引入请求封装
require('./util/request/index')(app)

// #ifdef H5
	RouterMount(app,router,'#app')
// #endif


	



// #ifndef H5
app.$mount()
// #endif